package com.lhy.admin.common.mvcplus.wrapper;

import com.lhy.admin.common.mvcplus.entity.DbField;
import org.springframework.util.StringUtils;

/**
 * AbstractSearchComparator
 * 抽象搜索条件比较器
 * @author hyluan
 * @date 2022/6/24 17:46
 */
public abstract class AbstractSearchComparator implements SearchComparator {

    @Override
    public boolean valid(DbField dbField) {
        return StringUtils.hasText(dbField.getName()) && StringUtils.hasText(dbField.getValue());
    }

}
